<?php
/**
 * Created by PhpStorm.
 * User: Silence
 * Date: 2017-07-14
 * Time: 16:54
 */
namespace App\Base;

use Illuminate\Support\Facades\DB;

class TaskState
{
    public function unstate()
    {
        $unstate = DB::table('task_state')
            ->where('task_state_name','=','待接受')
            ->first();
        return $unstate;
    }

    public function stating()
    {
        $stating = DB::table('task_state')
            ->where('task_state_name','=','已接受')
            ->first();
        return $stating;
    }

    public function stated()
    {
        $stated = DB::table('task_state')
            ->where('task_state_name','=','已完成')
            ->first();
        return $stated;
    }
}